const { downloadContent, parseContent } = require('../lib/modules/content')
const source = require('./source.json')

const content = {
  chapterName: '第一节 虫洞降临',
  chapterUrl: '/biquge/3_3564/c2058970.html'
}

downloadContent(source, content.chapterUrl).then(res => {
  console.log(res)
  return parseContent(source, res)
}).then(console.log)
